//
//  VOHMusicMainView.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/19.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHMusicMainView.h"
#import "VOHMusicTopView.h"
@implementation VOHMusicMainView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setUpView];
    }
    return self;
}


-(void)setUpView{
    self.backgroundColor = [UIColor whiteColor];
    self.topView = [[VOHMusicTopView alloc] initWithFrame:CGRectMake(0, 64, ScreenWidth *5, 30)];
    
    [self addSubview:self.topView];
    self.tableView = [[VOHTableView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.topView.frame), ScreenWidth, ScreenHeight - CGRectGetMaxY(self.topView.frame))];
    [self addSubview:self.tableView];
    
    self.tableView2 = [[UITableView alloc] initWithFrame:self.tableView.frame style:UITableViewStylePlain];
    [self insertSubview:self.tableView2 belowSubview:self.tableView];
}


@end
